<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('platforms')->insert([
            'id'   => -1,
            'name' => '全部渠道',
        ]);

        DB::table('roles')->insert(['name' => '管理员']);
        DB::table('roles')->insert(['name' => '合伙人']);

        DB::table('users')->insert([
//          'user_id'    => 1,
            'name'       => '超级管理员',
            'email'      => 'fhbzyc@163.com',
            'password'   => bcrypt('123456'),
            'role_id'    => 1,
            'desc'       => '',
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
    }
}
